package signup

import (
	"github.com/gin-gonic/gin"
	"sitego/app/application/request/admin"
	"sitego/app/application/validate"
	"sitego/app/infrastructure/base"
)

type SignupApi struct {
}

// 手机号登录
// ApiPath /api/signup/usingPhone
func (sa *SignupApi) UsingPhone(c *gin.Context) {

	// 验证请求参数
	if !base.VerifyParam(c, &admin.UsingPhone{}) {
		base.JsonFailed(c)
		return
	}
	// 验证请求数据
	if base.Validate(validate.UsingPhone()) {
		base.JsonFormat(c, base.GetResult())
		return
	}

	base.JsonResult(c, "111", "请求成功")
}

// 邮箱登录
func (sa *SignupApi) UsingEmail() {

}
